# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
#   Mayor.create(:name => 'Daley', :city => cities.first)

Vendor.create(:login_id => 'haohai' ,:password=>'111111' ,:company_name => '浩海',:auditing_status => '未审批')
Vendor.create(:login_id => 'ibm' ,:password=>'111111' ,:company_name => 'IBM',:auditing_status => '未审批')
Vendor.create(:login_id => 'hp' ,:password=>'111111' ,:company_name => '惠普',:auditing_status => '未审批')
    
Applicant.create(:login_id => 'jerry' ,:password=>'111111' ,:name => '老J',:department_id => 1 ,:auditing_status=>'启用')
Applicant.create(:login_id => 'oxygen' ,:password=>'111111' ,:name => '老O',:department_id => 1 ,:auditing_status=>'启用')

Auditor.create(:login_id => 'gai' ,:password=>'111111' ,:name => '盖科',:unit_price_ceiling => 10000,:amount_ceiling => 50000,:auditing_status=>'启用',:is_admin => 1,:department_id=>1,:auditor_type=>0)
Auditor.create(:login_id => 'fang' ,:password=>'111111' ,:name => '房产',:unit_price_ceiling => 10000,:amount_ceiling => 50000,:auditing_status=>'启用',:is_admin => 1,:department_id=>1,:auditor_type=>1)
Auditor.create(:login_id => 'guo' ,:password=>'111111' ,:name => '盖科',:unit_price_ceiling => 10000,:amount_ceiling => 100000,:auditing_status=>'启用',:is_admin => 1,:department_id=>1,:is_cheaf=>1)
